#include "stdio.h"
#include "string.h"

#include "unistd.h"

int main()
{
    char num[100];
    memset(num,0,sizeof(num));
    char vv[5]="|\\-/";
    int i=0;
    while(i<100)
    {
        num[i]='#';
        printf("[%d%%][%-100s][%c]\r",i,num,vv[i%4]);
        usleep(50000);
        fflush(stdout);
        i++;
    }

    printf("\n");

    return 0;
}

